package com.z.platform.controller.persistence.orm;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.Statement;

/**
 * @author haonan.zhang
 */
public class JdbcConnectionModel {
    private PreparedStatement preparedStatement;
    private Connection connection;
    private Statement statement;

    public JdbcConnectionModel() {
    }

    public JdbcConnectionModel(PreparedStatement preparedStatement, Connection connection) {
        this.preparedStatement = preparedStatement;
        this.connection = connection;
    }

    public JdbcConnectionModel( Connection connection, Statement statement) {
        this.connection = connection;
        this.statement = statement;
    }

    public Statement getStatement() {
        return statement;
    }

    public void setStatement(Statement statement) {
        this.statement = statement;
    }

    public PreparedStatement getPreparedStatement() {
        return preparedStatement;
    }

    public void setPreparedStatement(PreparedStatement preparedStatement) {
        this.preparedStatement = preparedStatement;
    }

    public Connection getConnection() {
        return connection;
    }

    public void setConnection(Connection connection) {
        this.connection = connection;
    }
}
